<template>
  <div class="App">
    <h1 class="content">我是App</h1>
    <button @click="getMsg">按钮添加</button>
    <Count ref="CountComp"/>
  </div>
</template>

<script>
import Count from './components/Count';

export default {
  name: 'App',
  components: {
    Count,
  },
  methods:{
    getMsg(){
      console.log(this);
      // console.log(this.$refs.iptEle.value);
      console.log(this.$refs.CountComp.count++);
    }
  }
}
</script>


